<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="" lang="" >
<head>
<title><?php echo config_item('project_title');?></title>
<link rel="stylesheet" href="<?php echo config_item('css');?>editor.css" type="text/css" />
<link rel="stylesheet" href="<?php echo config_item('css');?>template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo config_item('css');?>base.css" type="text/css" />
<link rel="stylesheet" href="<?php echo config_item('css');?>message.css" type="text/css" />
<link rel="stylesheet" href="<?php echo config_item('css');?>pagination.css" type="text/css" />
<link rel="stylesheet" href="<?php echo config_item('css');?>jquery.ui.all.css" type="text/css" />
<script type="application/javascript" src="<?php echo config_item('js');?>jquery.js"></script>
<script type="application/javascript" src="<?php echo config_item('js');?>general.js"></script>
<script type="application/javascript" src="<?php echo config_item('js');?>jquery-ui-1.8.2.js"></script>
<script type="application/javascript" src="<?php echo config_item('js');?>jquery.validate.min.js"></script>
<script type="text/javascript" src="<?php echo config_item('js');?>jquery.pajinate.js"></script>
</head>
<script>
     $(document).ready(function() {
		$(".toggleNext").click(function(){
			$(this).next().slideToggle()
			return false;
 		})
                $('.pajination').pajinate({
                    start_page : 0,
                    items_per_page : <?php  echo config_item('per_page');?>,
                    item_container_id : '.pajination_component',
                    num_page_links_to_display: 10,
                    nav_panel_id : '.pajination_numbers'
                });
    });
function show_loading(div_id){
    var loading_img = '<img src="<?php echo base_url();?>assets/images/loading.gif">';
    var width = ($("#"+div_id).width());
    var height = ($("#"+div_id).height());
    var innerContent = '<td colspan="5" style="vertical-align:middle; text-align:center;">'+loading_img+'</td>';
    $("#"+div_id).css({'width':width,'height':height});
    $("#"+div_id).html(innerContent);
}
</script>
<body id="page_bg">
    <div id="loading" style="display: none;"><img src="<?php echo base_url();?>assets/images/loading.gif"></div>
<a name="up" id="up"></a>
<div class="center" align="center">			
<div id="wrapper">
	<div id="wrapper_r">
	
		<div id="whitebox">
			<div id="whitebox_t">
				<div id="whitebox_tl">
					<div id="whitebox_tr">
						<span class="breadcrumbs pathway">
<a class="pathway" href="<?php echo site_url('welcome');?>"><?php echo config_item('project_title');?></a> <img alt="" src="<?php echo base_url();?>assets/images/arrow.png"><?php echo $this->router->fetch_class();?></span>

					</div>
				</div>
			</div>

		<div id="header">
			<div id="header_r">
				<div id="header_l">
					<div id="logo_bg">
						<div id="logo">
							<div style="position:absolute;top:100px;left:0;z-index:1;width:100%;"></div>
							<!--<a href="index.php"><?php echo "Publication" ;?></a>-->
						</div>
					</div>
				</div>
			</div>
		</div>

		<div id="tabarea">
			<div id="tabarea_r">
				<div id="tabarea_l">
					<table cellpadding="0" cellspacing="0" class="pill" style="width:auto;">
						<tr>
							<td class="pill_m" style="border:0px none">
							<div id="pillmenu">
								<ul>
                                                                    <li><a href="<?php echo site_url('home');?>">Home</a></li>
                                                                    <li><a href="<?php echo site_url('profile');?>">Profile</a></li>
                                                                    
                                                                    <!--<li><a href="#">Settings</a></li>-->
                                                                    <li><a href="<?php echo site_url('login/logout');?>">Logout</a></li>
                                                                </ul>
							</div>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>	
			
			
			<div id="whitebox_m">
				<div id="area">
						<div id="leftcolumn" style="float:left;">
							<?php
								$this->load->view('inc/leftbar');
								/*$sg = 'banner'; 
								include "templates.php"; */
							?>
						</div>
						<div id="maincolumn_full">
							<div class="nopad">
								<?php isset($page) ? $this->load->view($page) : $this->load->view('home_content');?>
							</div>
						</div>
							<!--<div id="rightcolumn" style="float:right;">
										Right sidebar								
							</div>-->

<div class="clr"></div>
				</div>
			</div>

	</div>
	<div id="footer">
		<div id="footer_l">
			<div id="footer_r">
				<p style="float: left; padding: 12px 25px; color: rgb(255, 255, 255);">
					<!--Footer Syndicate-->
				</p>
				<p style="clear:none;float: right; padding: 16px 25px; color: rgb(255, 255, 255);">
					Valid <a href="http://validator.w3.org/check/referer">XHTML</a> and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
				</p>
			</div>
		</div>
	</div>			
		</div>
	</div>
	</div>
</body>
</html>